import {get,postJSON,upload} from "@/utils/http/createHttp.js"

const apiOp  = {
    // 获取所有意见
    getAllOp:()=>{
        return get("/api/user/getAllFeedback")
    },
    // 添加意见
    addOp:(data)=>{
        return postJSON("/opinion/add",data)
    },
    // 更新/回复
    UpdateOp:(data)=>{
        return postJSON("/opinion/update",data)
    },
    // 删除
    deleteOp:(data)=>{
        return postJSON("/opinion/delete",data)
    }
}

export default apiOp